import math

for k in range(1, 10):
    # 统计每一千个
    start = (k - 1) * 100 + 1
    end = k * 100 + 1
    result = 0
    for i in range(start, end):
        if ((1 + i) * i // 2 - math.factorial(i)) % 100 == 0:
            result += 1
    print(f"{start}至{end - 1}有{result}个")
